package me.zhengjie.modules.system.service.impl;

import lombok.RequiredArgsConstructor;
import me.zhengjie.modules.system.domain.req.BankCardReqDTO;
import me.zhengjie.modules.system.domain.req.BankCardSubBranchReqDTO;
import me.zhengjie.modules.system.domain.req.IdCardReqDTO;
import me.zhengjie.modules.system.domain.rsp.*;
import me.zhengjie.modules.system.service.OcrService;
import me.zhengjie.modules.system.utils.common.ReadCardUtil;
import me.zhengjie.utils.PageResult;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class OcrServiceImpl implements OcrService {



    @Override
    public IdCardRspDTO readIdCard(IdCardReqDTO idCardReqDTO) {
        return ReadCardUtil.readIdCard(idCardReqDTO);
    }

    @Override
    public BandCardRspDTO readBankCard(BankCardReqDTO bankCardReqDTO) {
        return ReadCardUtil.readBankCard(bankCardReqDTO);
    }

    @Override
    public BankCardSubBranchInfoRspDTO readBankCardSubBranch(BankCardSubBranchReqDTO reqDTO) {
        return ReadCardUtil.readBankCardSubBranch(reqDTO);
    }


}
